package cc.autoapi.pucong.auto.flow.core.qlexpress.enumSelf;

public enum QlValueTypeEnum {
    输入值(0, "输入值，进行操作判断"),

    选择常量(1, "选择常量进行操作判断"),
    选择输入参数(2, "选择输入参数，进行操作判断"),
    操作符(3, "操作符"),
    比较符(4, "比较符"),

    ;

    private Integer value;
    private String desc;

    private QlValueTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static QlValueTypeEnum getEnumByCode(Integer value) {
        for (QlValueTypeEnum e : QlValueTypeEnum.values()) {
            if (e.getValue().equals(value)) {
                return e;
            }
        }
        return null;
    }

    public Integer getValue() {
        return value;
    }
}
